public class test {
    public static void main(String[] args) {
        //判断闰年
        int num = 2024;
        if (num % 4 == 0) {
            if (num % 100 != 0) {
                System.out.println("是闰年!");
            } else {
                System.out.println("不是闰年");
            }
        } else {
            if (num % 4 == 0) {
                System.out.println("是闰年");
            } else {
                System.out.println("不是闰年");
            }
        }
    }
}


    /*public static void main1(String[] args) {
        int op=3;
        switch(op){
            case 1:
                System.out.println("哈哈");
                break;
            case 2:
                System.out.println("呵呵");
                break;
            case 3:
                System.out.println("嘻嘻");
                break;
            default:
                System.out.println("出错了！");*/




/*        }
    }
}*/
